(Quick Reference)

console

目的
Purpose

Starts an instance of the Swing graphical Groovy console with an initialized Grails runtime.

使用例
Examples

grails console

詳細
Description

Starts the Grails console, which is an extended version of the regular Groovy console. There are a couple of useful variables registered in the binding:

  • ctx - The Spring ApplicationContext instance
  • grailsApplication - The GrailsApplication instance

These are useful as they allow access to the conventions within Grails and Spring beans.

使用方法:

Usage:
grails [environment]* console

発生するイベント:

Fired Events:
  • StatusFinal - When the console is loaded

Screenshot: